package com.sgj.state;

/**
 * 状态模式
 * @Author: Guoji Shen
 * @Date: 2021/11/19 9:07
 */
public class Client {
    public static void main(String[] args) {
        Lift lift = new Lift();
        lift.setState(new ClosingState(lift));
        lift.open();
        lift.close();
        lift.run();
        lift.stop();
    }
}